﻿
namespace System.Windows.Forms
{
	internal static class ComboBoxExtension
	{
		public static void SetCueBanner(this ComboBox cb, string cueBannerText)
		{
			if (System.Environment.OSVersion.Version.Major >= 6)
			{
				const uint CB_SETCUEBANNER = 0x1703;
				Microsoft.Win32.NativeMethods.SendMessage(cb.Handle, CB_SETCUEBANNER, IntPtr.Zero, cueBannerText);
				cb.Invalidate();
			}
			else
				throw new PlatformNotSupportedException();
		}
	}
}